home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmfolder
- BorderStyle = 3 'Fixed Dialog
- Caption = "Folder"
- ClientHeight = 3810
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 2205
- Icon = "frmfolder.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3810
- ScaleWidth = 2205
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin VB.DriveListBox Drive1
- Height = 315
- Left = 0
- TabIndex = 4
- Top = 0
- Width = 2175
- End
- Begin VB.TextBox Text1
- Enabled = 0 'False
- Height = 375
- Left = 0
- TabIndex = 3
- Top = 2760
- Width = 2175
- End
- Begin VB.CommandButton Command2
- Caption = "Set as Default"
- Height = 495
- Left = 1200
- TabIndex = 2
- Top = 3240
- Width = 855
- End
- Begin VB.CommandButton Command1
- Caption = "OK"
- Height = 495
- Left = 120
- TabIndex = 1
- Top = 3240
- Width = 855
- End
- Begin VB.DirListBox Dir1
- Height = 2340
- Left = 0
- TabIndex = 0
- Top = 360
- Width = 2175
- End
- Attribute VB_Name = "frmfolder"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- frmMain.File1.Path = Dir1.Path
- frmMain.lblPath.Caption = Dir1.Path
- frmMain.lblTotal.Caption = "Total number of mp3's: " & frmMain.File1.ListCount
- Unload Me
- frmMain.Show
- End Sub
- Private Sub Command2_Click()
- Dim Ddefault As String
- ChDir App.Path
- frmMain.File1.Path = Dir1.Path
- Ddefault = Text1.Text
- Open App.Path & "\" & "default.dat" For Output As #1 ' Open file for output.
- Write #1, Ddefault
- Write #1,
- Close #1
- frmMain.Show
- frmMain.lblTotal.Caption = "Total number of mp3's: " & frmMain.File1.ListCount
- Unload Me
- frmMain.lblPath.Caption = Ddefault
- End Sub
- Private Sub Dir1_Change()
- On Error Resume Next
- Text1.Text = "" & Dir1.Path
- End Sub
- Private Sub Dir1_Click()
- On Error Resume Next
- Text1.Text = "" & Dir1.Path
- End Sub
- Private Sub Drive1_Change()
- On Error Resume Next
- Dir1.Path = Drive1.Drive
- End Sub
- Private Sub Form_Load()
- On Error Resume Next
- Open App.Path & "\" & "default.Dat" For Input Access Read As #1
- Input #1, Ddefault
- Dir1.Path = Ddefault
- Drive1.Drive = Dir1.Path
- Text1.Text = "" & Dir1.Path
- Close #1
- End Sub
-